@import './common';

body {
    background: #EEEEEE;
}

.active {
    background: map-get($colors, "blue");
    color: #fff;

    a {
        color: #fff;
    }
}

.content {
    .top-layer {
        position: absolute;
        top: 0;
        z-index: 99;
    }

    .top-box {
        align-items: center;
    }

    .nav-box {
        background: #fff;

        li {
            flex: 1;

            &:hover {
                a {
                    color: #fff;
                }

                background: map-get($colors, "blue");
                color: #fff;
                cursor: pointer;
            }
        }
    }
}

.explain-left-box {
    line-height: 36px;
}

.content-left-box {
    position: relative;

    .background-img {
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }

    .flex-column {
        position: absolute;
        top: 0;
        left: 0;

        img {
            border: 1rem solid rgba(255, 255, 255, 0.5);
        }
    }
}

textarea {
    resize: none;
}

@mixin advantge ($str) {
    position: relative;
    border-bottom: 1px solid #cccccc;

    &::before {
        content: '';
        width: 1px;
        height: 40px;
        background: #cccccc;
        position: absolute;
        bottom: 0;
        #{$str}: 0;
    }

    &::after {
        content: '';
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #ccc;
        position: absolute;
        #{$str}: -5px;
        bottom: 40px;
    }
}

.advantage-left {
    @include advantge('left')
}

.advantage-right {
    @include advantge('right')
}

.team-items-box {
    position: relative;
    flex: 1;
    .team-explain {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        background: rgba(255, 255, 255, 0.1);
        &:hover {
            cursor: default;
            opacity: 1;
            transition: all 0.4s;
        }
        &:nth-child(2) p{
            margin: 0 auto;
            overflow: hidden;
            text-overflow:ellipsis;
            white-space: nowrap;
        }
    }
}

.see-more {
    &:hover {
        color: #fff;
    }
}

.news-date-box {
    background: #EEEDED;
    span {
       display: block; 
    }
}

.news-explain-box {
    span {
        display: block;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
}

footer {
    background: #141517;
    .col-md-3 {
        img {
            border: 0.8rem solid rgba(255, 255, 255, 0.5);
        }
    }
}

// 手机样式
@media screen and (max-width: 768px) {
   .explain-bottom-box {
       .col-sm-12 {
           margin-bottom: 0.5rem;
       }
   }
}